package com.tiny.persistence.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

/**
 * 报修表
 * 
 * @ClassName: Repair
 * @Description: TODO
 * @author:
 * @date: 2014年3月23日
 * 
 */
@Data
@Entity
@Table(name = "repair")
public class Repair implements Serializable{
    
    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;
    
    // 机器序列号
    @Column(name = "serial_number")
    private String serialNumber;
    
    // 故障信息
    @Column(name = "fault_info")
    private String faultInfo;
    
    // 到达时间
    @Column(name = "arrival_time")
    private Date arrivalTime;
    
    // 完成时间
    @Column(name = "finished_time")
    private Date finishedTime;
    
    // 状态
    @Column(name = "status")
    private byte status;
    
    // 报修人
    @Column(name = "bank_user")
    private String bankUser;
    
    // 报修人手机
    @Column(name = "bankUser_phone")
    private String bankUserPhone;
    
    // 报修人单位
    @Column(name = "bankUser_company")
    private String bankUserCompany;
    
    //报修日期
    @Column(name = "repair_date")
    private Date repairDate;
    
    //期望维修时间
    @Column(name = "expected_repair_time")
    private Date expectedRepairTime;
    
    //预约维修时间
    @Column(name = "plan_repair_time")
    private Date planRepairTime;
    
    //工单维护开始时间
    @Column(name = "maintenance_time_start")
    private Date maintenanceTimeStart;
    
    //工单维护完成时间
    @Column(name = "maintenance_time_end")
    private Date maintenanceTimeEnd;
    
    //机器的地址
    @Column(name = "machine_address")
    private String machineAddress;
    
    //厂商
    @Column(name = "manufacturer")
    private String manufacturer;
    
    //型号
    @Column(name = "model")
    private String model;

    //反馈信息
    @Column(name = "feedback_info")
    private String feedbackInfo;
    
    //维护备注信息
    @Column(name = "maintenance_remark")
    private String maintenanceRemark;
    
    // 维护人员（维修人)
    @Column(name = "maintenance_user")
    private String maintenanceUser;
    
    // 维护人员（维修人)手机
    @Column(name = "maintenance_phone")
    private String maintenancePhone;
    
    // 联系人
    @Column(name = "contact")
    private String contact;
    
    // 联系人手机
    @Column(name = "contact_phone")
    private String contactPhone;
    
    //工单生成时间
    @Column(name="create_time")
    private Date createTime;
    
    @Column(name = "org_id", length = 1024)
	private String orgId;
	
	@Column(name = "org_name", length = 1024)
	private String orgName;

    @Column(name = "break_code", length = 1024)
    private String breakCode;
}
